package com.sharer.last.model.dto.moment;

import com.sharer.last.base.model.BaseDTO;
import com.sharer.last.interfaces.ValidateGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 文件注释地方
 *
 * @ClassName MomentChangeDTO
 * @Author WangJin
 * @Date 2023/06/16/15:17
 * @Description
 * @Version 1.0
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class MomentChangeDTO extends BaseDTO {
    @NotNull(message = "id不能为空",groups = ValidateGroup.UpdateGroup.class)
    private Long id;

    /**
     * 动态内容
     */
    @NotBlank(message = "动态内容不能为空")
    private String content;

    /**
     * 是否公开  0:不公开 1：公开
     */
    private Integer isPublished;
}
